﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace HangerSupport
{
	public class HSTypeFilter : ISelectionFilter
	{
		public HSTypeFilter(string strFamilyName)
		{
			this.m_strFamilyName = strFamilyName;
		}

		public bool AllowElement(Element elem)
		{
			return HSFilter.IsHSElement(elem, this.m_strFamilyName);
		}

		public bool AllowReference(Reference reference, XYZ position)
		{
			return false;
		}

		private string m_strFamilyName;
	}
}
